/**
 ******************************************************************************
 * @file    bsp_led.h
 * @author  Iron
 * @date    2020-01-01
 * @version v1.0
 * @brief   bsp_led header file
 */

#ifndef __BSP_LED_H
#define __BSP_LED_H

#ifdef __cplusplus
extern "C" {
#endif

/* Exported includes ---------------------------------------------------------*/
#include "bsp.h"

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
#define BSP_LED_OFF             0u
#define BSP_LED_ON              1u

enum
{
    BSP_LED0,   // LED RED
    BSP_LED1,   // ETH GREEN LED
    BSP_LED2,   // ETH YELLOW LED
};

/* Exported macro ------------------------------------------------------------*/
/* Exported functions prototypes ---------------------------------------------*/

int32_t bsp_led_init(void);

int32_t bsp_led_get(int32_t led_id);

int32_t bsp_led_on(int32_t led_id);

int32_t bsp_led_off(int32_t led_id);

int32_t bsp_led_toggle(int32_t led_id);


/**
 * @}
 */

#ifdef __cplusplus
}
#endif

#endif /* __BSP_LED_H */

/******************* (C)COPYRIGHT 2020 ***** END OF FILE *********************/
